<%--                                                                       --%>
<%-- Copyright (c) 2001-2004 BroadVision, Inc.  All rights reserved.       --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries.                       --%>
<%--                                                                       --%>

<%@ taglib uri="/WEB-INF/bpmapp.tld" prefix="ssp" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" summary="content area">
  <tr>
  <td valign="top" width="100%">
    
  <div class="app_pageTitle"><bean:message bundle="appCommonRes" key="bp.processInstance.searchResults.pageTitle" /></div> 
  
  <div class="app_pageSubtitle">
    <span class="left"><bean:message bundle="appCommonRes" key="bp.processInstance.searchResults.tableTitle" /></span>
    <span class="right">&nbsp;</span>
  </div> 
  <!--end page title area here-->
  
	<div class="blockWrap">
  <!-- Start List here -->
  <table class="dataTable" border="0" cellspacing="1" cellpadding="2" summary="Process Instance search results" width="100%">
    <tr class="listHeader"> 
      <th align="left"><bean:message bundle="appCommonRes" key="bp.process.processInstance.instanceName" /></th>
      <th align="left"><bean:message bundle="appCommonRes" key="bp.process.processInstance.processName" /></th>
      <th align="left"><bean:message bundle="appCommonRes" key="bp.process.processInstance.status" /></th>
      <th align="left"><bean:message bundle="appCommonRes" key="bp.process.processInstance.workflowState" /></th>
      <th align="left"><bean:message bundle="appCommonRes" key="bp.process.processInstance.startDate" /></th>
      <th align="left"><bean:message bundle="appCommonRes" key="bp.process.processInstance.dueDate" /></th>
      <th align="left"><bean:message bundle="appCommonRes" key="bp.process.processInstance.completionDate" /></th>
    </tr>
   
    <logic:iterate id="processInstanceItem" name="processInstanceItems" indexId="index">
    <tr class="<%=index.intValue() % 2 == 0 ? "listEven" : "listOdd"%>">
      <td>
        <html:link page="/processInstance.do" paramId="instanceOid" 
                   paramName="processInstanceItem" paramProperty="oid">
          <bean:write name="processInstanceItem" property = "customId" />
        </html:link>
      </td>

      <td>
        <bean:write name="processInstanceItem" property ="sspName" />
      </td>
            
      <td>
        <bean:write name="processInstanceItem" property="applicationState"/>
      </td>

      <td>
        <bean:message bundle="appCommonRes" name="processInstanceItem" property="state"/>
      </td>
                    
      <td>
        <bean:write bundle="appCommonRes" name="processInstanceItem" property ="startingTime" formatKey="format.datetime.medium"/>        
      </td>

      <td>
        <bean:write bundle="appCommonRes" name="processInstanceItem" property ="dueDate" formatKey="format.datetime.medium"/>        
      </td>

      <td>
        <bean:write bundle="appCommonRes" name="processInstanceItem" property ="completionTime" formatKey="format.datetime.medium"/>        
      </td>
    </tr>
    </logic:iterate>
    
    <logic:empty name="processInstanceItems">    
    <tr class="listOdd">
      <td colspan="7" align="center">
        <bean:message bundle="appCommonRes" key="bp.processInstance.searchResults.empty" />
      </td>
    </tr>    
    </logic:empty>
    
  </table>
  </div> <!--end BlockWrap-->
	
	
  </td>
  </tr>
</table>
  
<!-- End process instance search results page -->
